package edu.wong.pro.action;

import com.opensymphony.xwork2.ActionSupport;

import edu.wong.pro.iservice.IMember;
import edu.wong.pro.model.Member;

public class AddUserAction extends ActionSupport{
	private String name;
	private String number;
	private IMember iMember;
	
	public IMember getiMember() {
		return iMember;
	}
	public void setiMember(IMember iMember) {
		this.iMember = iMember;
	}
	public AddUserAction(){}
	public String execute(){
		iMember.addMember(name,number);
		System.out.println(name+number);
		return "ok";
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	
}
